namespace ZFramework.Runtime
{
    public class CloseUIFormCompleteEventArgs : GameEventArgs
    {
        public static int EventId = typeof(CloseUIFormCompleteEventArgs).GetHashCode();

        public override int Id
        {
            get { return EventId; }
        }

        public int SerialId { get; private set; }

        public static CloseUIFormCompleteEventArgs Create(int serialId)
        {
            var args = ReferencePool.Acquire<CloseUIFormCompleteEventArgs>();
            args.SerialId = serialId;
            return args;
        }

        public override void Clear()
        {
            SerialId = 0;
        }
    }
}
